<?php 
namespace lib;
class Commontc{
   public static  function falsetc($msg,$data , $send = false){
        echo "
        <script src='".JQueryJS."'></script>
        <script src='".LayerJS."'></script>
        <script src='".CommonJs."'></script>
        <script>
            falsemsg(layer, '$msg', function() {
                $data
            });
        </script>";
         (!$send)?exit:'';
    }
    public static  function truetc($msg,$data ,$send = false){
        echo "
        <script src='".JQueryJS."'></script>
        <script src='".LayerJS."'></script>
        <script src='".CommonJs."'></script>
        <script>
            truemsg(layer, '$msg', function() {
                $data
            });
        </script>";
        (!$send)?exit:'';
    }
    
    public static  function alerttc($msg,$data ,$send = false){
        echo "
        <script src='".JQueryJS."'></script>
        <script src='".LayerJS."'></script>
        <script src='".CommonJs."'></script>
        <script>
            layeralert(layer, '$msg', function() {
                $data
            });
        </script>";
        (!$send)?exit:'';
    }
}


?>